import request from 'service/request';

export function saveAnswerUserInfo(data) {
  return request({
    url: '/user/saveAnswerUserInfo',
    method: 'POST',
    data
  });
}


export function getArticleList(option) {
  return request({
    url: '/promotion/article/list',
    method: 'GET',
    params: {
      pageNum: option.pageNum || 1,
      pageSize: option.pageSize || 50,
      // keyword: option.keyword
    }
  });
}



export function getArticleDetail(option) {
  return request({
    url: '/promotion/article/detail',
    method: 'get',
    params: {
      id: option.id
    }
  });
}




export function getCondition(option) {
  return request({
    url: '/promotion/activity/getCondition',
    method: 'get',
    params: {
      activityId: option.activityId
    }
  });
}



export function createWinterCamp(option){
  return request({
      url: '/promotion/winterCamp/submit',
      method: 'POST',
      data:option
  });
}



export function getBookedNum() {
  return request({
    url: '/user/ad/bookedNum',
    method: 'get',
    params: {
    }
  });
}
